//
//  UIButton+POP.m
//  LingQian
//
//  Created by xieyingze on 2018/1/21.
//  Copyright © 2018年 xieyingze. All rights reserved.
//

#import "UIView+POP.h"

@implementation UIView (POP)

- (void)setPopScaleXYAnmationFrom:(CGFloat)from toValue:(CGFloat)to {
    POPSpringAnimation *animation = [POPSpringAnimation animationWithPropertyNamed:kPOPViewScaleXY];
    animation.fromValue = [NSValue valueWithCGSize:CGSizeMake(from, from)];
    animation.toValue = [NSValue valueWithCGSize:CGSizeMake(to, to)];
    animation.springSpeed = 20;
    animation.springBounciness = 10;
    [self pop_addAnimation:animation forKey:nil];
}

@end
